package io.dshubs.archives.service;


import com.baomidou.mybatisplus.extension.service.IService;
import io.dshubs.archives.entity.ArchiveWarehouse;
import io.dshubs.archives.entity.vo.ArchiveWarehouseVo;
import io.dshubs.commons.mybatis.service.BaseService;
import io.dshubs.commons.tools.page.PageData;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 库房表 服务类
 * </p>
 *
 * @author tan
 * @since 2021-08-17
 */
public interface ArchiveWarehouseService extends BaseService<ArchiveWarehouse> {

    /**
     * 分页查询
     * @param params params
     * @return PageData<ArchiveWarehouse>
     */
    PageData<ArchiveWarehouse> page(Map<String, Object> params);

    /**
     * 删除
     * @param ids ids
     */
    void deleteBatch(List<Long> ids);

    /**
     * 生成库房
     * @param archiveWarehouse archiveWarehouse
     */
    void save(ArchiveWarehouse archiveWarehouse);

    /**
     * 删除库房
     * @param ids
     */
    void delete(List<Long> ids);

    /**
     * 模拟库房首页
     * @return ArchiveWarehouseVo
     */
    List<ArchiveWarehouseVo> simulation(Map<String, Object> params);

    List<ArchiveWarehouse> selectList();
}
